package com.ethan.hateoas.vo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.hateoas.RepresentationModel;

import java.io.Serializable;
@Data
public class UserVo extends RepresentationModel<UserVo> implements Serializable {
    private final String name;
    @JsonCreator
    public UserVo(@JsonProperty("name") String name) {
        this.name = name;
    }
}
